package com.cloudfast.dao.conf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.cloudfast.dao.SimpleRepository;
import com.cloudfast.dao.impl.SimpleRepositoryImpl;

/**
 * 简化CURD配置
 *
 * @author liuyw
 * @date 2022年9月7日
 */
@Configuration
public class RepositoryConfig {

    @Autowired
    private DataBaseSource dataBaseSource;

    @Bean
    public SimpleRepository simpleRepository() {
        return new SimpleRepositoryImpl(dataBaseSource);
    }

}
